<?php
class NewsAction extends CommonAction {

	public function view($id = 0)
	{
		$News = M('News') ;
		$vo = $News->find($id);
		$this->initMember($vo['mid']);
		$this->initMpaccount($vo['mid']);
		$this->assign('vo',$vo);

		$tplPath = "./Tpl/Mobile/";
		if ($vo['tpl']) 
			$tpl = $tplPath.$vo['tpl'].'/news.html';
		else
			$tpl = $tplPath.'default/news.html';
		$this->display($tpl);
	}
}